package cn.autumnorange.app;

import cn.autumnorange.app.common.repository.jpa.BaseRepositoryFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

// @EnableJpaRepositories(repositoryBaseClass = BaseJpaRepositoryImpl.class)
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@EnableJpaRepositories(
    basePackages = {"cn.autumnorange.app.common.repository.jpa"},
    repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class // 指定自己的工厂类
    )
// @EnableGlobalMethodSecurity(prePostEnabled = true) // 方法上开启注解权限方式
// 没有@EnableGlobalMethodSecurity注解单调用本服务接口时会走BasicFilter验证zuul客户端是否在本服务中有配置
// @EnableResourceServer
// @EnableOAuth2Sso
public class SysMoneyProviderApplication
//        extends ResourceServerConfigurerAdapter
{

  public static void main(String[] args) {

    SpringApplication.run(SysMoneyProviderApplication.class, args);
  }
}
